import { Component, OnInit } from "@angular/core";
import { RootClass } from "../root-class";
import { A } from "../a";
import { B } from "../b";

@Component({
  selector: "app-test01",
  templateUrl: "./test01.component.html",
  styleUrls: ["../style.css", "./test01.component.css"]
})
export class Test01Component implements OnInit {
  constructor() {}

  varRoot: RootClass = new RootClass();
  varA: A = new A();
  varB: B<RootClass> = new B<RootClass>();
  ngOnInit() {}
  addB() {
    this.varB.add(new RootClass());
  }
}
